/**
 *
 */
package com.whosly.api.exception;

import com.whosly.api.enums.IResultCodeType;

/**
 * @author yueny09 <deep_blue_yang@163.com>
 *
 * @DATE 2016年7月28日 下午1:15:28
 *
 */
public class JsonException extends BaseHolderException implements ILangException {
	/**
	 *
	 */
	private static final long serialVersionUID = -8772907562783067529L;

	/**
	 * @param errorType
	 *            错误枚举
	 */
	public JsonException(final IResultCodeType errorType) {
		super(errorType);
	}

	public JsonException(final String message) {
		super(message);
	}

	/**
	 * @param errorCode
	 *            错误码
	 * @param errorMsg
	 *            错误描述
	 */
	public JsonException(final String errorCode, final String errorMsg) {
		super(errorCode, errorMsg);
	}

	public JsonException(final Throwable cause) {
		super(cause);
	}

	public JsonException(final Throwable cause, final String message) {
		super(cause);
		setErrorMsg(message);
	}

}
